function $bu_getBrowser(t) { var e, i, n = t || navigator.userAgent, a = !1, s = { i: "Internet Explorer", e: "Edge", f: "Firefox", o: "Opera", s: "Safari", n: "Netscape", c: "Chrome", a: "Android Browser", y: "Yandex Browser", v: "Vivaldi", x: "Other" }; if (/bot|googlebot|facebook|SMART-TV|Dorado|slurp|wii|Opera Mini|silk|maxthon|SmartTV|maxton|mediapartners|dolfin|dolphin|adsbot|silk|bingbot|google web preview|chromeframe|seamonkey|opera mini|meego|netfront|moblin|maemo|arora|camino|flot|k-meleon|fennec|kazehakase|galeon|epiphany|konqueror|rekonq|symbian|webos|coolnovo|blackberry|bb10|RIM|PlayBook|PaleMoon|QupZilla|Otter|Midori|qutebrowser/i.test(n)) return { n: "x", v: 0, t: "unknown", donotnotify: "niche browser" }; if (/iphone|ipod|ipad|kindle/i.test(n)) return { n: "x", v: 0, t: "mobile browser", donotnotify: "mobile" }; for (var o = /iphone|ipod|ipad|android|mobile|phone|ios|iemobile/i.test(n), r = [["Trident.*rv:VV", "i"], ["Trident.VV", "io"], ["MSIE.VV", "i"], ["Edge.VV", "e"], ["Vivaldi.VV", "v"], ["OPR.VV", "o"], ["YaBrowser.*Chrome.VV", "y"], ["Chrome.VV", "c"], ["Firefox.VV", "f"], ["Version.VV.{0,10}Safari", "s"], ["Safari.VV", "so"], ["Opera.*Version.VV", "o"], ["Opera.VV", "o"], ["Netscape.VV", "n"]], l = 0; l < r.length; l++)if (n.match(new RegExp(r[l][0].replace("VV", "(\\d+\\.?\\d?)")), "i")) { e = r[l][1]; break } var h = parseFloat(RegExp.$1); if (!e) return { n: "x", v: 0, t: s[e], mobile: o }; if (n.indexOf("Android") > -1) { var d = parseInt((/WebKit\/([0-9]+)/i.exec(n) || 0)[1], 10) || 2e3; return d <= 534 ? { n: "a", v: d, t: s.a, mob: !0, donotnotify: a, mobile: o } : { n: e, v: h, t: s[e] + " " + h, donotnotify: "mobile on android", mobile: o } } return /windows.nt.5.0|windows.nt.4.0|windows.98|os x 10.4|os x 10.5|os x 10.3|os x 10.2/.test(n) && (a = "oldOS"), "f" != e || 38 != Math.round(h) && 45 != Math.round(h) || (a = "ESR"), "so" == e && (h = 4, e = "s"), "i" == e && 7 == h && window.XDomainRequest && (h = 8), "io" == e && (e = "i", h = h > 6 ? 11 : h > 5 ? 10 : h > 4 ? 9 : h > 3.1 ? 8 : h > 3 ? 7 : 9), "e" == e ? { n: "i", v: h, t: s[e] + " " + h, donotnotify: a, mobile: o } : { n: e, v: h, t: s[e] + " " + h, donotnotify: a, mobile: o } } var psLibCarouselTimer = [], psLib = {
BrowserRequeriments: { ie: 7, ff: 30, op: 12.1, sa: 7, ch: "auto" }, IsMobile: !1, IsTablet: !1, IsDesktop: !1, IsHD: !1, isOldIE: !1, SetScreen: function () { var t = $(window).innerWidth(); t < 768 && (psLib.IsMobile = !0), t >= 768 && (psLib.IsTablet = !0), t > 990 && (psLib.IsDesktop = !0), t > 1206 && (psLib.IsHD = !0), navigator.appVersion.indexOf("MSIE 8") > -1 && (psLib.IsMobile = !1, psLib.IsTablet = !1, psLib.IsDesktop = !0, psLib.IsOldIE = !0, psLib.IsHD = !1, $("html").addClass("lt-ie9")) }, CheckCompatibility: function () { window.$buo_f = function () { $bu_getBrowser() }, $buo_f() }, TableStripes: function (t) { psLib.IsOldIE && $(".ps-table-stripped tbody tr", t).each(function () { var t = $(this), e = t.parent().find("tr"), i = e.index(t); i % 2 != 0 && t.addClass("ps-table-oddLine") }) }, FormResources: function (ctn) { $(".ps-frm-multiselect", ctn).each(function () { var t = $(this), e = "undefined" != typeof t.data("multiselecttitle") ? t.data("multiselecttitle") : "Selecione uma opção", i = t.next(".ps-frm-multiselect-change"), n = 0 == i.length, a = t.is(".ps-frm-valid"), s = !(!a || "undefined" == typeof t.data("onerror")) && t.data("onerror"), o = t.is(":disabled"), r = { title: e, isValid: a, onError: s }, l, h; t.removeData("onerror"), "undefined" != typeof t.attr("id") ? (l = t.attr("id"), h = l) : (l = Math.floor(100 * Math.random()), h = "psLib-select-" + l, t.attr("id", h)); var d = "psLib-ModalMultiple-" + l.toString(), c = "psLib-ListMultiple-" + l.toString(); n && t.after("
"), t.data({ multiselectmodal: d, multiselectlist: c }), psLib.FormMultiSelectCreateContent(c, d, h, l, n, r) }).on("change.pslib", function () { var t = $(this), e = t.attr("id"), i = t.data("multiselectlist"), n = t.data("multiselectmodal"), a = t.find("option"); a.each(function () { var t = $(this), e = t.is(":selected"); $("#" + n).find("input[value='" + t.val() + "']").prop("checked", e) }), psLib.FormMultiSelectConfig(e, n, i) }), $(".ps-frm-valid[data-onerror]").each(function () { var t = $(this), e = t.data("onerror"), i = e.indexOf("clone:") > -1; if (!t.is(".ps-frm-multiselect")) { i && (e = e.replace("clone:", ""), e = $(e).clone().html()); var n = "ps-frm-ctt-error-" + Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5), a = '\t\t\t\t
'; i || (a += '\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t'), a += e, i || (a += "\t\t\t\t\t\t
\t\t\t\t\t
"), a += "\t\t\t\t
", $(this).data("onerror", "#" + n), psLib.IsMobile ? t.prev().is(".ps-frm-lbl-internal") ? t.prev().prev().is(".ps-frm-ctt-error") || t.prev().before(a) : t.is(".ps-frm-multiselect-change") && t.prev().prev().is(".ps-frm-lbl-internal") ? t.prev().prev().prev().is(".ps-frm-ctt-error") || t.prev().prev().before(a) : t.parent().is(".ps-frm-select") ? t.parent().before(a) : t.prev().is(".ps-frm-ctt-error") || t.before(a) : t.parent().is(".ps-frm-select") ? t.parent().after(a) : t.after().is(".ps-frm-ctt-error") || t.after(a) } }), $(".ps-frm-entry", ctn).on("change.pslib", function () { var t = this.value; t = $.trim(t), this.value = t }), $(".ps-frm-phone", ctn).mask("(99) 9999-9999").on("blur.pslib", function () { var t = this.value, e = psLib.FormValidatePhone(this.value); psLib.FormShowFieldError(this, e) }), $(".ps-frm-celPhone", ctn).mask("(99) 99999-999?9").on("blur.pslib", function () { var t = this.value, e = psLib.FormValidatePhone(this.value); psLib.FormShowFieldError(this, e) }), $(".ps-frm-phone[data-onlynumber='true']", ctn).unmask().mask("9999-9999?9").on("blur.pslib", function () { var t = this.value, e = psLib.FormValidatePhone(this.value); psLib.FormShowFieldError(this, e) }), $(".ps-frm-celPhone[data-onlynumber='true']", ctn).mask("99999-999?9").on("blur.pslib", function () { var t = this.value, e = psLib.FormValidatePhone(this.value); psLib.FormShowFieldError(this, e) }), $(".ps-frm-zipcode", ctn).mask("99999-999"), $(".ps-frm-mask[data-mask!='']", ctn).each(function () { var t = $(this).data("mask"); $(this).mask(t) }), $(".ps-frm-date", ctn).mask("99/99/9999").on("change.pslib", function () { var t = $(this), e = $.trim(t.val()), i = !0; e = e.split("/"); var n = new Date(e[2], parseInt(e[1]) - 1, e[0]); "" == e || parseInt(e[0]) == parseInt(n.getDate()) && parseInt(e[1]) == parseInt(n.getMonth()) + 1 || (i = !1, psLib.IsOldIE && e == t.attr("placeholder") && (i = !0)), psLib.FormShowFieldError(this, i) }), $(".ps-frm-cpf", ctn).mask("999.999.999-99").on("blur.pslib", function () { var t = this.value.replace(/[^\d]+/g, ""), e = !0; "" != t && (e = psLib.FormValidateCPF(this.value)), psLib.FormShowFieldError(this, e) }), $(".ps-frm-cnpj", ctn).mask("99.999.999/9999-99").on("blur.pslib", function () { var t = this.value.replace(/[^\d]+/g, ""), e = !0; "" != t && (e = psLib.FormValidateCNPJ(this.value)), psLib.FormShowFieldError(this, e) }), $(".ps-frm-email", ctn).on("blur.pslib", function () { var t = !0; "" != this.value && (t = psLib.FormValidateMail(this.value)), psLib.FormShowFieldError(this, t) }), $(".ps-frm-number", ctn).on("keydown.pslib", function (t) { $.inArray(t.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 || 65 == t.keyCode && t.ctrlKey === !0 || 86 == t.keyCode && t.ctrlKey === !0 || 82 == t.keyCode && t.ctrlKey === !0 || t.keyCode >= 35 && t.keyCode <= 39 || !t.shiftKey && (t.keyCode >= 48 && t.keyCode <= 57 || t.keyCode >= 96 && t.keyCode <= 105) || t.preventDefault() }), $(".ps-frm-cleanup", ctn).on("keyup.fb blur.fb", function (t) { var e = this.value, i = "allowNumbers" == $(this).data("cleanuptext"); return !($.inArray(t.keyCode, [38, 39, 40, 37, 16, 9]) !== -1 || (t.shiftKey || t.ctrlKey || t.altKey) && $.inArray(t.keyCode, [38, 39, 40, 37, 16, 9]) !== -1) && (e = e.toUpperCase(), e = psLib.FormCleanupString(e, i), void $(this).val(e)) }), $(".ps-frm-split", ctn).on("change.pslib", function () { var t = $(this).data("split"), e = this.value; if ("string" == typeof t) { t = t.split(";"), e = e.replace(/\./g, "").replace(/\(/g, ""), e = e.split(t[0]); for (var i = 1, n = t.length; i < n; i++)$(t[i]).val(e[i - 1]).trigger("change") } }), $(".ps-frm-autocomplete", ctn).each(function () { var t = $(this), min = "undefined" != typeof t.data("autocompleteminlength") ? t.data("autocompleteminlength") : 2, source = t.data("autocompletesource"), onselect = t.data("autocompleteselect"), config = { minLength: min }; return "undefined" != typeof source && (source.indexOf("function:") > -1 ? config.source = eval("(window." + source.replace("function:", "") + ")") : source.indexOf("remote:") > -1 ? config.source = source.replace("remote:", "") : config.source = eval("window." + source), "undefined" != typeof onselect && (onselect = onselect.replace("()", ""), config.select = eval("window." + onselect)), void $(this).autocomplete(config)) }), psLib.IsMobile || $(".ps-frm-calendar", ctn).mask("99/99/9999"), $(".ps-frm-calendar", ctn).each(function () { var t = $(this), min = t.data("calendarmindate"), max = t.data("calendarmaxdate"), onselect = t.data("calendarselect"), dft = t.data("calendardefaultdate"); if (psLib.IsMobile && t.is("input")) { var nMin = psLib.FormCalendarMobileParams(min), nMax = psLib.FormCalendarMobileParams(max); t.attr("type", "hidden"); var n = ''; t.after(n), $(".ps-mob-dateBuffer", ctn).on("blur.calendar_pslib", function () { var t = $(this), e = t.prev("input"), i = t.val(), n = new Date(i), a = "", s = 0; if ("undefined" != typeof this.getAttribute("min")) { var o = this.getAttribute("min"); o = o.split("-"); for (var r = 0, l = o.length; r < l; r++)o[r] = parseInt(o[r]); var h = new Date(o[0], o[1] - 1, o[2]); n < h && (alert("Data inválida, a data mínima permitida é " + $.datepicker.formatDate("dd/mm/yy", h)), s++) } if ("undefined" != typeof this.getAttribute("max")) { var d = this.getAttribute("max"); d = d.split("-"); for (var r = 0, l = d.length; r < l; r++)d[r] = parseInt(d[r]); var c = new Date(d[0], d[1] - 1, d[2]); n > c && (alert("Data inválida, a data máxima permitida é " + $.datepicker.formatDate("dd/mm/yy", c)), s++) } s > 0 ? t.addClass("ps-frm-error") : t.removeClass("ps-frm-error"), i = i.split("-"), a = i[2] + "/" + i[1] + "/" + i[0], e.val(a) }), "undefined" != typeof onselect && t.next(".ps-mob-dateBuffer").on("blur.calendar_pslib", function () { eval(onselect) }) } else { var nom = "undefined" != typeof t.data("calendarnumberofmonths") ? t.data("calendarnumberofmonths") : 1, config = { numberOfMonths: nom }; "undefined" != typeof dft && (config.defaultDate = dft), "undefined" != typeof min && (config.minDate = min), "undefined" != typeof max && (config.maxDate = max), "undefined" != typeof onselect && (onselect = onselect.replace("()", ""), config.onSelect = eval("window." + onselect)), $(this).datepicker(config) } }).on("blur.psLib change.psLib", function (t) { var e = $(this), i = e.val(), n = e.data("calendarmindate"), a = e.data("calendarmaxdate"), s = !0; if ("blur" == t.type && psLib.IsMobile || "change" == t.type && !psLib.IsMobile) { i = psLib.IsMobile ? i.split("-") : i.split("/"); var o = psLib.IsMobile ? new Date(i[0], parseInt(i[1]) - 1, i[2]) : new Date(i[2], parseInt(i[1]) - 1, i[0]); if ("" != i) { if ((!psLib.IsMobile || parseInt(i[2]) == parseInt(o.getDate()) && parseInt(i[1]) == parseInt(o.getMonth()) + 1) && (psLib.IsMobile || parseInt(i[0]) == parseInt(o.getDate()) && parseInt(i[1]) == parseInt(o.getMonth()) + 1) || (s = !1, psLib.IsOldIE && i == e.attr("placeholder") && (s = !0)), "undefined" != typeof n && n.indexOf("/") > -1) { n = n.split("/"); var r = new Date(n[2], parseInt(n[1]) - 1, n[0]); o.getTime() < r.getTime() && (s = !1) } if ("undefined" != typeof a && a.indexOf("/") > -1) { a = a.split("/"); var l = new Date(a[2], parseInt(a[1]) - 1, a[0]); o.getTime() > l.getTime() && (s = !1), console.log(s) } } psLib.FormShowFieldError(this, s) } }), $(".ps-frm-slider", ctn).each(function () { var t = $(this), dft = t.data("sliderdefaultvalues"), min = t.data("sliderminvalue"), max = t.data("slidermaxvalue"), step = t.data("slidersteps"), orient = "undefined" != typeof t.data("sliderorientation") ? t.data("sliderorientation") : "horizontal", rge = "undefined" == typeof t.data("sliderrange") || t.data("sliderrange"), onchange = t.data("slideronchange"), config = { range: rge, orientation: orient }; "undefined" != typeof dft && ("string" == typeof dft ? (dft = dft.split(","), config.values = dft) : config.value = dft), "undefined" != typeof min && (config.min = min), "undefined" != typeof max && (config.max = max), "undefined" != typeof step && (config.step = step), "undefined" != typeof onchange && (onchange = onchange.replace("()", ""), config.change = eval("window." + onchange)), $(this).slider(config) }), $(".ps-frm-validate", ctn).on("click.pslib", function (e) { e.preventDefault(); var t = $(this), frm = t.data("validatescope"); if ("undefined" == typeof frm) return !1; frm = $(frm); var onlyVisible = "undefined" == typeof t.data("validateonlyvisible") || t.data("validateonlyvisible"), scrollFirst = "undefined" == typeof t.data("validatescrollfirst") || t.data("validatescrollfirst"); if (psLib.FormValidate(frm, onlyVisible, scrollFirst)) { var success = t.data("validatesuccess"); "undefined" != typeof success && eval(success) } }), $(".ps-frm-lbl-internal + .ps-frm-entry", ctn).off("focus.psLib").on("focus.psLib", function () { $(this).prev("label.ps-frm-lbl-internal").addClass("ps-frm-lbl-focus") }).off("blur.tsFrmLbl").on("blur.tsFrmLbl", function () { var t = $(this), e = t.val(); "" == e && t.prev("label.ps-frm-lbl-internal").removeClass("ps-frm-lbl-focus") }).each(function () { var t = $(this), e = t.val(); "" == e && t.prev("label.ps-frm-lbl-internal").removeClass("ps-frm-lbl-focus") }), $(".ps-frm-lbl-internal + .ps-frm-select, .ps-frm-lbl-internal + .ps-frm-multiselect", ctn).each(function () { var t = $(this); t.prev("label.ps-frm-lbl-internal").addClass("ps-frm-lbl-focus") }), $(".ps-frm-calendar-availability", ctn).each(function () { for (var t = $(this), opts = psLib.FormSelectValues2Array(t), params = t.data(), cfg = { beforeShowDay: function (t) { return $.inArray($.datepicker.formatDate("dd/mm/yy", t), opts) > -1 ? [!0, "ps-frm-datepicker-availableDate", ""] : [!1, "", ""] } }, dMin = 0, dMax = 0, minDate, maxDate, i = 0, l = opts.length; i < l; i++) { var cDate = opts[i].split("/"), dDate = new Date(parseInt(cDate[2]), parseInt(cDate[1]) - 1, parseInt(cDate[0])); (0 == dMin || dDate.valueOf() < dMin) && (dMin = dDate.valueOf(), minDate = dDate), dMax < dDate.valueOf() && (dMax = dDate.valueOf(), maxDate = dDate) } if (minDate = new Date(minDate.setDate(minDate.getDate() - 1)), maxDate = new Date(maxDate.setDate(maxDate.getDate())), cfg.minDate = minDate, cfg.maxDate = maxDate, "undefined" == typeof params.calendarid) { var thisId = Math.floor(1e3 * Math.random()); params.calendarid = "psLib-calendar-availability-" + thisId } "undefined" != typeof params.calendarcallback && (params.calendarcallback = params.calendarcallback.replace("()", ""), eval("var fnVal = typeof window." + params.calendarcallback + " == 'function';"), cfg.onSelect = function () { t.val(arguments[0]), fnVal && window[params.calendarcallback].apply(this, [arguments[0], arguments[1]]) }), opts.length > 0 && ("undefined" == typeof params.calendaravailabilityref ? (t.after(''), t.data("calendaravailabilityref", params.calendarid)) : params.calendarid = t.next().attr("id"), $("#" + params.calendarid).datepicker(cfg), $("#" + params.calendarid).find(".ui-datepicker-today .ui-state-highlight").removeClass("ui-state-active")) }), $(".ps-frm-select-list", ctn).each(function () { var t = $(this), opts = psLib.FormSelectValues2Array(t, !1), params = t.data(), selectId = t.attr("id"); if ("undefined" == typeof params.selectlistid) { var thisId = Math.floor(1e3 * Math.random()); params.selectlistid = "ps-frm-select-list-" + thisId } if ("undefined" == typeof selectId) { var thisId = Math.floor(1e3 * Math.random()); selectId = "ps-frm-select-list-opts-" + thisId, t.attr("id", selectId) } if (opts.length > 0) { var ctt = "", generatedList = params.selectlistref, listId = "undefined" != typeof params.selectlistref ? params.selectlistref : params.selectlistid; "undefined" == typeof params.selectlistref && (t.after('
'), t.data("selectlistref", params.selectlistid)); for (var i = 0, l = opts.length; i < l; i++)"" != opts[i].val && (ctt += '
" }, FormMultiSelectConfig: function (t, e, i) { var n = $(".ps-modal-content", "#" + e), a = $(".ps-frm-multiselect-selecteditens", "#" + i), s = a.parent().find(".ps-btn-multiselect-trigger"), o = a.parent().find(".ps-btn-multiselect-addremove"), r = $("#" + t), l = 0; $("input[type='checkbox']", n).each(function () { var i = $(this), n = this.id, s = i.val(), o = i.is(":checked"), h = i.data("multiselecttext"), d = $("li." + n, a); if (o) { if (0 == d.length) { var c = psLib.FormMultiSelectCreateListItem(h, s, n, t, e); a.append(c), psLib.FormMultiSelectRemove(a) } l++ } else d.length > 0 && $(".ps-frm-multiselect-remove", d).trigger("click"); r.find("option[value='" + s + "']").prop("selected", o) }), l > 0 ? (a.show(), s.hide(), o.show(), psLib.FormShowFieldError("#" + i, !0), psLib.FormShowFieldError("#" + t, !0)) : (a.hide(), s.show(), o.hide()) }, FormMultiSelectRemove: function (t) { $(".ps-frm-multiselect-remove", t).on("click.pslib", function () { var t = $(this), e = t.data(), i = $(this).parent(), n = i.parent(), a = n.parent().find(".ps-btn-multiselect-trigger"), s = n.parent().find(".ps-btn-multiselect-addremove"); $("#" + e.multiselect + " option[value='" + e.multiselectvalue + "']").prop("selected", !1), $("#" + e.multiselectmodal + " input:checkbox[value='" + e.multiselectvalue + "']").prop("checked", !1), i.fadeOut("fast", function () { $(this).remove(), 0 == $("#" + e.multiselect + " option:selected").length ? (s.hide(), a.show()) : (a.hide(), s.show()) }) }) }, FormMultiSelectCreateContent: function (t, e, i, n, a, s) { var o = $("#" + i + " option"), r = "", l = ""; o.each(function () { var t = $(this).val(), a = $(this).text(), s = $(this).is(":selected"), o = "ps-frm-chk-" + t + "-" + n; l += '\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
", s && (r += psLib.FormMultiSelectCreateListItem(a, t, o, i, e)) }); var h = '\t\t\t\t
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),a={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(a),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,a){return a=a||{},t.each(i,function(t,i){var s=e.cssUnit(i);s[0]>0&&(a[i]=s[0]*n+s[1])}),a}}),t.fn.extend({effect:function(){function i(e){function i(){t.isFunction(s)&&s.call(a[0]),t.isFunction(e)&&e()}var a=t(this),s=n.complete,r=n.mode;(a.is(":hidden")?"hide"===r:"show"===r)?(a[r](),i()):o.call(a[0],n,i)}var n=e.apply(this,arguments),a=n.mode,s=n.queue,o=t.effects.effect[n.effect];return t.fx.off||!o?a?this[a](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):s===!1?this.each(i):this.queue(s||"fx",i)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var a=e.apply(this,arguments);return a.mode="show",this.effect.call(this,a)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var a=e.apply(this,arguments);return a.mode="hide",this.effect.call(this,a)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var a=e.apply(this,arguments);return a.mode="toggle",this.effect.call(this,a)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}(),t.effects,t.effects.effect.blind=function(e,i){var n,a,s,o=t(this),r=/up|down|vertical/,l=/up|left|vertical|horizontal/,h=["position","top","bottom","left","right","height","width"],d=t.effects.setMode(o,e.mode||"hide"),c=e.direction||"up",u=r.test(c),p=u?"height":"width",f=u?"top":"left",g=l.test(c),m={},v="show"===d;o.parent().is(".ui-effects-wrapper")?t.effects.save(o.parent(),h):t.effects.save(o,h),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),a=n[p](),s=parseFloat(n.css(f))||0,m[p]=v?a:0,g||(o.css(u?"bottom":"right",0).css(u?"top":"left","auto").css({position:"absolute"}),m[f]=v?s:a+s),v&&(n.css(p,0),g||n.css(f,s+a)),n.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===d&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),i()}})},t.effects.effect.bounce=function(e,i){var n,a,s,o=t(this),r=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"effect"),h="hide"===l,d="show"===l,c=e.direction||"up",u=e.distance,p=e.times||5,f=2*p+(d||h?1:0),g=e.duration/f,m=e.easing,v="up"===c||"down"===c?"top":"left",b="up"===c||"left"===c,y=o.queue(),w=y.length;for((d||h)&&r.push("opacity"),t.effects.save(o,r),o.show(),t.effects.createWrapper(o),u||(u=o["top"===v?"outerHeight":"outerWidth"]()/3),d&&(s={opacity:1},s[v]=0,o.css("opacity",0).css(v,b?2*-u:2*u).animate(s,g,m)),h&&(u/=Math.pow(2,p-1)),s={},s[v]=0,n=0;p>n;n++)a={},a[v]=(b?"-=":"+=")+u,o.animate(a,g,m).animate(s,g,m),u=h?2*u:u/2;h&&(a={opacity:0},a[v]=(b?"-=":"+=")+u,o.animate(a,g,m)),o.queue(function(){h&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}),w>1&&y.splice.apply(y,[1,0].concat(y.splice(w,f+1))),o.dequeue()},t.effects.effect.clip=function(e,i){var n,a,s,o=t(this),r=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"hide"),h="show"===l,d=e.direction||"vertical",c="vertical"===d,u=c?"height":"width",p=c?"top":"left",f={};t.effects.save(o,r),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),a="IMG"===o[0].tagName?n:o,s=a[u](),h&&(a.css(u,0),a.css(p,s/2)),f[u]=h?s:0,f[p]=h?0:s/2,a.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){h||o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})},t.effects.effect.drop=function(e,i){var n,a=t(this),s=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(a,e.mode||"hide"),r="show"===o,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",d="up"===l||"left"===l?"pos":"neg",c={opacity:r?1:0};t.effects.save(a,s),a.show(),t.effects.createWrapper(a),n=e.distance||a["top"===h?"outerHeight":"outerWidth"](!0)/2,r&&a.css("opacity",0).css(h,"pos"===d?-n:n),c[h]=(r?"pos"===d?"+=":"-=":"pos"===d?"-=":"+=")+n,a.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&a.hide(),t.effects.restore(a,s),t.effects.removeWrapper(a),i()}})},t.effects.effect.explode=function(e,i){function n(){y.push(this),y.length===c*u&&a()}function a(){p.css({visibility:"visible"}),t(y).remove(),g||p.hide(),i()}var s,o,r,l,h,d,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=c,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/u),b=Math.ceil(p.outerHeight()/c),y=[];for(s=0;c>s;s++)for(l=m.top+s*b,d=s-(c-1)/2,o=0;u>o;o++)r=m.left+o*v,h=o-(u-1)/2,p.clone().appendTo("body").wrap("").css({position:"absolute",visibility:"visible",left:-o*v,top:-s*b}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:b,left:r+(g?h*v:0),top:l+(g?d*b:0),opacity:g?0:1}).animate({left:r+(g?0:h*v),top:l+(g?0:d*b),opacity:g?1:0},e.duration||500,e.easing,n)},t.effects.effect.fade=function(e,i){var n=t(this),a=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:a},{queue:!1,duration:e.duration,easing:e.easing,complete:i})},t.effects.effect.fold=function(e,i){var n,a,s=t(this),o=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(s,e.mode||"hide"),l="show"===r,h="hide"===r,d=e.size||15,c=/([0-9]+)%/.exec(d),u=!!e.horizFirst,p=l!==u,f=p?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(s,o),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),a=p?[n.width(),n.height()]:[n.height(),n.width()],c&&(d=parseInt(c[1],10)/100*a[h?0:1]),l&&n.css(u?{height:0,width:d}:{height:d,width:0}),m[f[0]]=l?a[0]:d,v[f[1]]=l?a[1]:0,n.animate(m,g,e.easing).animate(v,g,e.easing,function(){h&&s.hide(),t.effects.restore(s,o),t.effects.removeWrapper(s),i()})},t.effects.effect.highlight=function(e,i){var n=t(this),a=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(n,e.mode||"show"),o={backgroundColor:n.css("backgroundColor")};"hide"===s&&(o.opacity=0),t.effects.save(n,a),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&n.hide(),t.effects.restore(n,a),i()}})},t.effects.effect.size=function(e,i){var n,a,s,o=t(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],h=["width","height","overflow"],d=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(o,e.mode||"effect"),f=e.restore||"effect"!==p,g=e.scale||"both",m=e.origin||["middle","center"],v=o.css("position"),b=f?r:l,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&o.show(),n={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&&"show"===p?(o.from=e.to||y,o.to=e.from||n):(o.from=e.from||("show"===p?y:n),o.to=e.to||("hide"===p?y:n)),s={from:{y:o.from.height/n.height,x:o.from.width/n.width},to:{y:o.to.height/n.height,x:o.to.width/n.width}},("box"===g||"both"===g)&&(s.from.y!==s.to.y&&(b=b.concat(c),o.from=t.effects.setTransition(o,c,s.from.y,o.from),o.to=t.effects.setTransition(o,c,s.to.y,o.to)),s.from.x!==s.to.x&&(b=b.concat(u),o.from=t.effects.setTransition(o,u,s.from.x,o.from),o.to=t.effects.setTransition(o,u,s.to.x,o.to))),("content"===g||"both"===g)&&s.from.y!==s.to.y&&(b=b.concat(d).concat(h),o.from=t.effects.setTransition(o,d,s.from.y,o.from),o.to=t.effects.setTransition(o,d,s.to.y,o.to)),t.effects.save(o,b),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),m&&(a=t.effects.getBaseline(m,n),o.from.top=(n.outerHeight-o.outerHeight())*a.y,o.from.left=(n.outerWidth-o.outerWidth())*a.x,o.to.top=(n.outerHeight-o.to.outerHeight)*a.y,o.to.left=(n.outerWidth-o.to.outerWidth)*a.x),o.css(o.from),("content"===g||"both"===g)&&(c=c.concat(["marginTop","marginBottom"]).concat(d),u=u.concat(["marginLeft","marginRight"]),h=r.concat(c).concat(u),o.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,h),i.from={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},i.to={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x},s.from.y!==s.to.y&&(i.from=t.effects.setTransition(i,c,s.from.y,i.from),i.to=t.effects.setTransition(i,c,s.to.y,i.to)),s.from.x!==s.to.x&&(i.from=t.effects.setTransition(i,u,s.from.x,i.from),i.to=t.effects.setTransition(i,u,s.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,h)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),t.effects.restore(o,b),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,i){var n=parseInt(i,10),a=t?o.to.left:o.to.top;return"auto"===i?a+"px":n+a+"px"})})),t.effects.removeWrapper(o),i()}})},t.effects.effect.scale=function(e,i){var n=t(this),a=t.extend(!0,{},e),s=t.effects.setMode(n,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===s?0:100),r=e.direction||"both",l=e.origin,h={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},d={y:"horizontal"!==r?o/100:1,x:"vertical"!==r?o/100:1};a.effect="size",a.queue=!1,a.complete=i,"effect"!==s&&(a.origin=l||["middle","center"],a.restore=!0),a.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:h),a.to={height:h.height*d.y,width:h.width*d.x,outerHeight:h.outerHeight*d.y,outerWidth:h.outerWidth*d.x},a.fade&&("show"===s&&(a.from.opacity=0,a.to.opacity=1),"hide"===s&&(a.from.opacity=1,a.to.opacity=0)),n.effect(a)},t.effects.effect.puff=function(e,i){var n=t(this),a=t.effects.setMode(n,e.mode||"hide"),s="hide"===a,o=parseInt(e.percent,10)||150,r=o/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:a,complete:i,percent:s?o:100,from:s?l:{height:l.height*r,width:l.width*r,outerHeight:l.outerHeight*r,outerWidth:l.outerWidth*r}}),n.effect(e)},t.effects.effect.pulsate=function(e,i){var n,a=t(this),s=t.effects.setMode(a,e.mode||"show"),o="show"===s,r="hide"===s,l=o||"hide"===s,h=2*(e.times||5)+(l?1:0),d=e.duration/h,c=0,u=a.queue(),p=u.length;for((o||!a.is(":visible"))&&(a.css("opacity",0).show(),c=1),n=1;h>n;n++)a.animate({opacity:c},d,e.easing),c=1-c;a.animate({opacity:c},d,e.easing),a.queue(function(){r&&a.hide(),i()}),p>1&&u.splice.apply(u,[1,0].concat(u.splice(p,h+1))),a.dequeue()},t.effects.effect.shake=function(e,i){var n,a=t(this),s=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(a,e.mode||"effect"),r=e.direction||"left",l=e.distance||20,h=e.times||3,d=2*h+1,c=Math.round(e.duration/d),u="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},g={},m={},v=a.queue(),b=v.length;for(t.effects.save(a,s),a.show(),t.effects.createWrapper(a),f[u]=(p?"-=":"+=")+l,g[u]=(p?"+=":"-=")+2*l,m[u]=(p?"-=":"+=")+2*l,a.animate(f,c,e.easing),n=1;h>n;n++)a.animate(g,c,e.easing).animate(m,c,e.easing);a.animate(g,c,e.easing).animate(f,c/2,e.easing).queue(function(){"hide"===o&&a.hide(),t.effects.restore(a,s),t.effects.removeWrapper(a),i()}),b>1&&v.splice.apply(v,[1,0].concat(v.splice(b,d+1))),a.dequeue()},t.effects.effect.slide=function(e,i){var n,a=t(this),s=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(a,e.mode||"show"),r="show"===o,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",d="up"===l||"left"===l,c={};t.effects.save(a,s),a.show(),n=e.distance||a["top"===h?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(a).css({overflow:"hidden"}),r&&a.css(h,d?isNaN(n)?"-"+n:-n:n),c[h]=(r?d?"+=":"-=":d?"-=":"+=")+n,a.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&a.hide(),t.effects.restore(a,s),t.effects.removeWrapper(a),i()}})},t.effects.effect.transfer=function(e,i){var n=t(this),a=t(e.to),s="fixed"===a.css("position"),o=t("body"),r=s?o.scrollTop():0,l=s?o.scrollLeft():0,h=a.offset(),d={top:h.top-r,left:h.left-l,height:a.innerHeight(),width:a.innerWidth()},c=n.offset(),u=t("").appendTo(document.body).addClass(e.className).css({top:c.top-r,left:c.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(d,e.duration,e.easing,function(){u.remove(),i()})}}),$.datepicker.regional["pt-BR"]={closeText:"Fechar",prevText:"< Mês anterior",nextText:"Próximo mês >",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},$.datepicker.setDefaults($.datepicker.regional["pt-BR"]),!function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,a=n._mouseInit,s=n._mouseDestroy;n._touchStart=function(t){var n=this;!i&&n._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,n._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),a.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),s.call(e)}}}(jQuery),!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var i,n=document.createElement(t||"div");for(i in e)n[i]=e[i];return n}function e(t){for(var e=1,i=arguments.length;i>e;e++)t.appendChild(arguments[e]);return t}function i(t,e,i,n){var a=["opacity",e,~~(100*t),i,n].join("-"),s=.01+i/n*100,o=Math.max(1-(1-t)/e*(100-s),t),r=h.substring(0,h.indexOf("Animation")).toLowerCase(),l=r&&"-"+r+"-"||"";return u[a]||(d.insertRule("@"+l+"keyframes "+a+"{0%{opacity:"+o+"}"+s+"%{opacity:"+t+"}"+(s+.01)+"%{opacity:1}"+(s+e)%100+"%{opacity:"+t+"}100%{opacity:"+o+"}}",d.cssRules.length),u[a]=1),a}function n(t,e){var i,n,a=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),n=0;n',i)}d.addRule(".spin-vml","behavior:url(#default#VML)"),r.prototype.lines=function(t,n){function s(){return a(i("group",{coordsize:d+" "+d,coordorigin:-h+" "+-h}),{width:d,height:d})}function r(t,r,l){e(u,e(a(s(),{rotation:360/n.lines*t+"deg",left:~~r}),e(a(i("roundrect",{arcsize:n.corners}),{width:h,height:n.scale*n.width,left:n.scale*n.radius,top:-n.scale*n.width>>1,filter:l}),i("fill",{color:o(n.color,t),opacity:n.opacity}),i("stroke",{opacity:0}))))}var l,h=n.scale*(n.length+n.width),d=2*n.scale*h,c=-(n.width+n.length)*n.scale*2+"px",u=a(s(),{position:"absolute",top:c,left:c});if(n.shadow)for(l=1;l<=n.lines;l++)r(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=n.lines;l++)r(l);return e(t,u)},r.prototype.opacity=function(t,e,i,n){var a=t.firstChild;n=n.shadow&&n.lines||0,a&&e+n>1)+"px"})}for(var l,d=0,c=(s.lines-1)*(1-s.direction)/2;d0){r=t(this[0]);var g=r.data(t.mask.dataName);return g?g():void 0}return o=t.extend({autoclear:t.mask.autoclear,placeholder:t.mask.placeholder,completed:null},o),l=t.mask.definitions,h=[],d=p=i.length,c=null,t.each(i.split(""),function(t,e){"?"==e?(p--,d=t):l[e]?(h.push(new RegExp(l[e])),null===c&&(c=h.length-1),d>t&&(u=h.length-1)):h.push(null)}),this.trigger("unmask").each(function(){function r(){if(o.completed){for(var t=c;u>=t;t++)if(h[t]&&M[t]===g(t))return;o.completed.call(T)}}function g(t){return o.placeholder.charAt(t=0&&!h[t];);return t}function b(t,e){var i,n;if(!(0>t)){for(i=t,n=m(e);p>i;i++)if(h[i]){if(!(p>n&&h[i].test(M[n])))break;M[i]=M[n],M[n]=g(n),n=m(n)}S(),T.caret(Math.max(c,t))}}function y(t){var e,i,n,a;for(e=t,i=g(t);p>e;e++)if(h[e]){if(n=m(e),a=M[e],M[e]=i,!(p>n&&h[n].test(a)))break;i=a}}function w(){var t=T.val(),e=T.caret();if(f&&f.length&&f.length>t.length){for(D(!0);e.begin>0&&!h[e.begin-1];)e.begin--;if(0===e.begin)for(;e.begino)&&o&&13!==o){if(l.end-l.begin!==0&&(k(l.begin,l.end),b(l.begin,l.end-1)),i=m(l.begin-1),p>i&&(n=String.fromCharCode(o),h[i].test(n))){if(y(i),M[i]=n,S(),a=m(i),s){var d=function(){t.proxy(t.fn.caret,T,a)()};setTimeout(d,0)}else T.caret(a);l.begin<=u&&r()}e.preventDefault()}}}function k(t,e){var i;for(i=t;e>i&&p>i;i++)h[i]&&(M[i]=g(i))}function S(){T.val(M.join(""))}function D(t){var e,i,n,a=T.val(),s=-1;for(e=0,n=0;p>e;e++)if(h[e]){for(M[e]=g(e);n++a.length){k(e+1,p);break}}else M[e]===a.charAt(n)&&n++,d>e&&(s=e);return t?S():d>s+1?o.autoclear||M.join("")===L?(T.val()&&T.val(""),k(0,p)):S():(S(),T.val(T.val().substring(0,s+1))),d?e:c}var T=t(this),M=t.map(i.split(""),function(t,e){return"?"!=t?l[t]?g(e):t:void 0}),L=M.join(""),I=T.val();T.data(t.mask.dataName,function(){return t.map(M,function(t,e){return h[e]&&t!=g(e)?t:null}).join("")}),T.one("unmask",function(){T.off(".mask").removeData(t.mask.dataName)}).on("focus.mask",function(){if(!T.prop("readonly")){clearTimeout(e);var t;I=T.val(),t=D(),e=setTimeout(function(){T.get(0)===document.activeElement&&(S(),t==i.replace("?","").length?T.caret(0,t):T.caret(t))},10)}}).on("blur.mask",_).on("keydown.mask",x).on("keypress.mask",C).on("input.mask paste.mask",function(){T.prop("readonly")||setTimeout(function(){var t=D(!0);T.caret(t),r()},0)}),a&&s&&T.off("input.mask").on("input.mask",w),D()})}})}),function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t(jQuery)}(function(t){function e(e){return!e||void 0!==e.allowPageScroll||void 0===e.swipe&&void 0===e.swipeStatus||(e.allowPageScroll=h),void 0!==e.click&&void 0===e.tap&&(e.tap=e.click),e||(e={}),e=t.extend({},t.fn.swipe.defaults,e),this.each(function(){var n=t(this),a=n.data(M);a||(a=new i(this,e),n.data(M,a))})}function i(e,i){function m(e){if(!(dt()||t(e.target).closest(i.excludedElements,Yt).length>0)){var n=e.originalEvent?e.originalEvent:e,a,s=S?n.touches[0]:n;return Gt=_,S?qt=n.touches.length:e.preventDefault(),Et=0,Ot=null,Ht=null,zt=0,Wt=0,Bt=0,Nt=1,jt=0,Ut=gt(),Vt=bt(),lt(),!S||qt===i.fingers||i.fingers===y||V()?(ut(0,s),Kt=Tt(),2==qt&&(ut(1,n.touches[1]),Wt=Bt=_t(Ut[0].start,Ut[1].start)),(i.swipeStatus||i.pinchStatus)&&(a=E(n,Gt))):a=!1,a===!1?(Gt=k,E(n,Gt),a):(i.hold&&(ee=setTimeout(t.proxy(function(){Yt.trigger("hold",[n.target]),i.hold&&(a=i.hold.call(Yt,n,n.target))},this),i.longTapThreshold)),ct(!0),null)}}function L(t){var e=t.originalEvent?t.originalEvent:t;if(Gt!==C&&Gt!==k&&!ht()){var n,a=S?e.touches[0]:e,s=pt(a);if(Xt=Tt(),S&&(qt=e.touches.length),i.hold&&clearTimeout(ee),Gt=x,2==qt&&(0==Wt?(ut(1,e.touches[1]),Wt=Bt=_t(Ut[0].start,Ut[1].start)):(pt(e.touches[1]),Bt=_t(Ut[0].end,Ut[1].end),Ht=Ct(Ut[0].end,Ut[1].end)),Nt=xt(Wt,Bt),jt=Math.abs(Wt-Bt)),qt===i.fingers||i.fingers===y||!S||V()){if(Ot=Dt(s.start,s.end),j(t,Ot),Et=kt(s.start,s.end),zt=wt(),mt(Ot,Et),(i.swipeStatus||i.pinchStatus)&&(n=E(e,Gt)),!i.triggerOnTouchEnd||i.triggerOnTouchLeave){var o=!0;if(i.triggerOnTouchLeave){var r=Mt(this);o=Lt(s.end,r)}!i.triggerOnTouchEnd&&o?Gt=A(x):i.triggerOnTouchLeave&&!o&&(Gt=A(C)),Gt!=k&&Gt!=C||E(e,Gt)}}else Gt=k,E(e,Gt);n===!1&&(Gt=k,E(e,Gt))}}function I(t){var e=t.originalEvent;return S&&e.touches.length>0?(rt(),!0):(ht()&&(qt=Jt),Xt=Tt(),zt=wt(),W()||!z()?(Gt=k,E(e,Gt)):i.triggerOnTouchEnd||0==i.triggerOnTouchEnd&&Gt===x?(t.preventDefault(),Gt=C,E(e,Gt)):!i.triggerOnTouchEnd&&Q()?(Gt=C,O(e,Gt,p)):Gt===x&&(Gt=k,E(e,Gt)),ct(!1),null)}function F(){qt=0,Xt=0,Kt=0,Wt=0,Bt=0,Nt=1,lt(),ct(!1)}function P(t){var e=t.originalEvent;i.triggerOnTouchLeave&&(Gt=A(C),E(e,Gt))}function R(){Yt.unbind(Ft,m),Yt.unbind(At,F),Yt.unbind(Pt,L),Yt.unbind($t,I),Rt&&Yt.unbind(Rt,P),ct(!1)}function A(t){var e=t,n=N(),a=z(),s=W();return!n||s?e=k:!a||t!=x||i.triggerOnTouchEnd&&!i.triggerOnTouchLeave?!a&&t==C&&i.triggerOnTouchLeave&&(e=k):e=C,e}function E(t,e){var i=void 0;return U()||q()||Y()||V()?((U()||q())&&(i=O(t,e,c)),(Y()||V())&&i!==!1&&(i=O(t,e,u))):st()&&i!==!1?i=O(t,e,f):ot()&&i!==!1?i=O(t,e,g):at()&&i!==!1&&(i=O(t,e,p)),e===k&&F(t),e===C&&(S?0==t.touches.length&&F(t):F(t)),i}function O(e,h,d){var m=void 0;if(d==c){if(Yt.trigger("swipeStatus",[h,Ot||null,Et||0,zt||0,qt,Ut]),i.swipeStatus&&(m=i.swipeStatus.call(Yt,e,h,Ot||null,Et||0,zt||0,qt,Ut),m===!1))return!1;if(h==C&&G()){if(Yt.trigger("swipe",[Ot,Et,zt,qt,Ut]),i.swipe&&(m=i.swipe.call(Yt,e,Ot,Et,zt,qt,Ut),m===!1))return!1;switch(Ot){case n:Yt.trigger("swipeLeft",[Ot,Et,zt,qt,Ut]),i.swipeLeft&&(m=i.swipeLeft.call(Yt,e,Ot,Et,zt,qt,Ut));break;case a:Yt.trigger("swipeRight",[Ot,Et,zt,qt,Ut]),i.swipeRight&&(m=i.swipeRight.call(Yt,e,Ot,Et,zt,qt,Ut));break;case s:Yt.trigger("swipeUp",[Ot,Et,zt,qt,Ut]),i.swipeUp&&(m=i.swipeUp.call(Yt,e,Ot,Et,zt,qt,Ut));break;case o:Yt.trigger("swipeDown",[Ot,Et,zt,qt,Ut]),i.swipeDown&&(m=i.swipeDown.call(Yt,e,Ot,Et,zt,qt,Ut))}}}if(d==u){if(Yt.trigger("pinchStatus",[h,Ht||null,jt||0,zt||0,qt,Nt,Ut]),i.pinchStatus&&(m=i.pinchStatus.call(Yt,e,h,Ht||null,jt||0,zt||0,qt,Nt,Ut),m===!1))return!1;if(h==C&&H())switch(Ht){case r:Yt.trigger("pinchIn",[Ht||null,jt||0,zt||0,qt,Nt,Ut]),i.pinchIn&&(m=i.pinchIn.call(Yt,e,Ht||null,jt||0,zt||0,qt,Nt,Ut));break;case l:Yt.trigger("pinchOut",[Ht||null,jt||0,zt||0,qt,Nt,Ut]),i.pinchOut&&(m=i.pinchOut.call(Yt,e,Ht||null,jt||0,zt||0,qt,Nt,Ut))}}return d==p?h!==k&&h!==C||(clearTimeout(te),clearTimeout(ee),J()&&!et()?(Zt=Tt(),te=setTimeout(t.proxy(function(){Zt=null,Yt.trigger("tap",[e.target]),i.tap&&(m=i.tap.call(Yt,e,e.target))},this),i.doubleTapThreshold)):(Zt=null,Yt.trigger("tap",[e.target]),i.tap&&(m=i.tap.call(Yt,e,e.target)))):d==f?h!==k&&h!==C||(clearTimeout(te),Zt=null,Yt.trigger("doubletap",[e.target]),i.doubleTap&&(m=i.doubleTap.call(Yt,e,e.target))):d==g&&(h!==k&&h!==C||(clearTimeout(te),Zt=null,Yt.trigger("longtap",[e.target]),i.longTap&&(m=i.longTap.call(Yt,e,e.target)))),m}function z(){var t=!0;return null!==i.threshold&&(t=Et>=i.threshold),t}function W(){var t=!1;return null!==i.cancelThreshold&&null!==Ot&&(t=vt(Ot)-Et>=i.cancelThreshold),t}function B(){return null===i.pinchThreshold||jt>=i.pinchThreshold}function N(){var t;return t=!i.maxTimeThreshold||!(zt>=i.maxTimeThreshold)}function j(t,e){if(i.preventDefaultEvents!==!1)if(i.allowPageScroll===h)t.preventDefault();else{var r=i.allowPageScroll===d;switch(e){case n:(i.swipeLeft&&r||!r&&i.allowPageScroll!=v)&&t.preventDefault();break;case a:(i.swipeRight&&r||!r&&i.allowPageScroll!=v)&&t.preventDefault();break;case s:(i.swipeUp&&r||!r&&i.allowPageScroll!=b)&&t.preventDefault();break;case o:(i.swipeDown&&r||!r&&i.allowPageScroll!=b)&&t.preventDefault()}}}function H(){var t=K(),e=X(),i=B();return t&&e&&i}function V(){return!!(i.pinchStatus||i.pinchIn||i.pinchOut)}function Y(){return!(!H()||!V())}function G(){var t=N(),e=z(),i=K(),n=X(),a=W(),s=!a&&n&&i&&e&&t;return s}function q(){return!!(i.swipe||i.swipeStatus||i.swipeLeft||i.swipeRight||i.swipeUp||i.swipeDown)}function U(){return!(!G()||!q())}function K(){return qt===i.fingers||i.fingers===y||!S}function X(){return 0!==Ut[0].end.x}function Q(){return!!i.tap}function J(){return!!i.doubleTap}function Z(){return!!i.longTap}function tt(){if(null==Zt)return!1;var t=Tt();return J()&&t-Zt<=i.doubleTapThreshold}function et(){return tt()}function it(){return(1===qt||!S)&&(isNaN(Et)||Eti.longTapThreshold&&Et=0?n:i<=360&&i>=315?n:i>=135&&i<=225?a:i>45&&i<135?o:s}function Tt(){var t=new Date;return t.getTime()}function Mt(e){e=t(e);var i=e.offset(),n={left:i.left,right:i.left+e.outerWidth(),top:i.top,bottom:i.top+e.outerHeight()};return n}function Lt(t,e){return t.x>e.left&&t.xe.top&&t.y=h[o]&&(p[o]=h[o]-.2),h[o]&&p[o]<0&&(p[o]=h[o]+p[o]),c[o]&&p[o]-1&&this.op.reminder>0||g.v>p[g.n]||g.mobile&&t.mobile===!1)){if(this.op.nomessage)return void t.onshow(this.op);if(!this.op.test&&1e5*Math.random()<1){var m=new Image;m.src="//browser-update.org/viewcount.php?n="+g.n+"&v="+g.v+"&p="+escape(f)+"&jsv="+a+"&inv="+this.op.v+"&vs="+u.i+","+u.f+","+u.o+","+u.s}this.op.reminder>0&&i(this.op.reminder);var v={};v.en="This website would like to remind you: Your browser (%s) is out of date. Update your browser for more security, comfort and the best experience on this site.",v.de="Sie verwenden einen veralteten Browser (%s) mit Sicherheitsschwachstellen und können nicht alle Funktionen dieser Webseite nutzen. Hier erfahren Sie, wie einfach Sie Ihren Browser aktualisieren können.",v.it="Il tuo browser (%s) non è aggiornato. Ha delle falle di sicurezza e potrebbe non visualizzare correttamente le pagine di questo e altri siti. Aggiorna il tuo browser!",v.pl="Przeglądarka (%s), której używasz, jest przestarzała. Posiada ona udokumentowane luki bezpieczeństwa, inne wady oraz ograniczoną funkcjonalność. Tracisz możliwość skorzystania z pełni możliwości oferowanych przez niektóre strony internetowe. Dowiedz się jak zaktualizować swoją przeglądarkę.",v.es="Su navegador (%s) no está actualizado. Tiene fallos de seguridad conocidos y podría no mostrar todas las características de este y otros sitios web. Averigüe cómo actualizar su navegador.",v.nl="Uw browser (%s) is oud. Het heeft bekende veiligheidsissues en kan niet alle mogelijkheden weergeven van deze of andere websites. Lees meer over hoe uw browser te upgraden",v.pt="Seu navegador (%s) está desatualizado. Ele possui falhas de segurança e pode apresentar problemas para exibir este e outros websites. Veja como atualizar o seu navegador",v.sl="Vaš brskalnik (%s) je zastarel. Ima več varnostnih pomankljivosti in morda ne bo pravilno prikazal te ali drugih strani. Poglejte kako lahko posodobite svoj brskalnik",v.ru="Ваш браузер (%s) устарел. Он имеет уязвимости в безопасности и может не показывать все возможности на этом и других сайтах. Узнайте, как обновить Ваш браузер",v.id="Browser Anda (%s) sudah kedaluarsa. Browser yang Anda pakai memiliki kelemahan keamanan dan mungkin tidak dapat menampilkan semua fitur dari situs Web ini dan lainnya. Pelajari cara memperbarui browser Anda",v.uk="Ваш браузер (%s) застарів. Він уразливий й може не відображати всі можливості на цьому й інших сайтах. Дізнайтесь, як оновити Ваш браузер",v.ko="지금 사용하고 계신 브라우저(%s)는 오래되었습니다. 알려진 보안 취약점이 존재하며, 새로운 웹 사이트가 깨져 보일 수도 있습니다. 브라우저를 어떻게 업데이트하나요?",v.rm="Tes navigatur (%s) è antiquà. El cuntegna problems da segirezza enconuschents e mussa eventualmain betg tut las funcziuns da questa ed autras websites. Emprenda sco actualisar tes navigatur.",v.jp="お使いのブラウザ「%s」は、時代遅れのバージョンです。既知の脆弱性が存在するばかりか、機能不足によって、サイトが正常に表示できない可能性があります。 ブラウザを更新する方法を確認する",v.fr="Votre navigateur (%s) est périmé. Il contient des failles de sécurité et pourrait ne pas afficher certaines fonctionnalités des sites internet récents. Découvrez comment mettre votre navigateur à jour",v.da="Din browser (%s) er forældet. Den har kendte sikkerhedshuller og kan måske ikke vise alle funktioner på dette og andre websteder. Se hvordan du opdaterer din browser",v.sq="Shfletuesi juaj (%s) është ca i vjetër. Ai ka të meta sigurie të njohura dhe mundet të mos i shfaqë të gjitha karakteristikat e kësaj dhe shumë faqeve web të tjera. Mësoni se si të përditësoni shfletuesin tuaj",v.ca="El teu navegador (%s) està desactualitzat. Té vulnerabilitats conegudes i pot no mostrar totes les característiques d'aquest i altres llocs web. Aprèn a actualitzar el navegador",v.fa="مرورگر شما (%s) از رده خارج شده می باشد. این مرورگر دارای مشکلات امنیتی شناخته شده می باشد و نمی تواند تمامی ویژگی های این وب سایت و دیگر وب سایت ها را به خوبی نمایش دهد. در خصوص گرفتن راهنمایی درخصوص نحوه ی به روز رسانی مرورگر خود اینجا کلیک کنید.",v.sv="Din webbläsare (%s) är föråldrad. Den har kända säkerhetshål och kan inte visa alla funktioner korrekt på denna och på andra webbsidor. Uppdatera din webbläsare idag",v.hu="Az Ön böngészője (%s) elavult. Ismert biztonsági hiányosságai vannak és esetlegesen nem tud minden funkciót megjeleníteni ezen vagy más weboldalakon. Itt talál bővebb információt a böngészőjének frissítésével kapcsolatban\t\t ",v.gl="O seu navegador (%s) está desactualizado. Ten coñecidos fallos de seguranza e podería non mostrar tódalas características deste e outros sitios web. Aprenda como pode actualizar o seu navegador",v.cs="Váš prohlížeč (%s) je zastaralý. Jsou známy bezpečnostní rizika a možná nedokáže zobrazit všechny prvky této a dalších webových stránek. Naučte se, jak aktualizovat svůj prohlížeč",v.he="הדפדפן שלך (%s) אינו מעודכן. יש לו בעיות אבטחה ידועות ועשוי לא להציג את כל התכונות של אתר זה ואתרים אחרים. למד כיצד לעדכן את הדפדפן שלך",v.nb="Nettleseren din (%s) er utdatert. Den har kjente sikkerhetshull og kan ikke vise alle funksjonene på denne og andre websider. Lær hvordan du kan oppdatere din nettleser",v["zh-tw"]="您的瀏覽器(%s) 需要更新。該瀏覽器有諸多安全漏洞,無法顯示本網站的所有功能。 瞭解如何更新瀏覽器",v.zh="您的浏览器(%s) 需要更新。该浏览器有诸多安全漏洞,无法显示本网站的所有功能。 了解如何更新浏览器",v.fi="Selaimesi (%s) on vanhentunut. Siinä on tunnettuja tietoturvaongelmia eikä se välttämättä tue kaikkia ominaisuuksia tällä tai muilla sivustoilla. Lue lisää siitä kuinka päivität selaimesi.",v.tr="Tarayıcınız (%s) güncel değil. Eski versiyon olduğu için güvenlik açıkları vardır ve görmek istediğiniz bu web sitesinin ve diğer web sitelerinin tüm özelliklerini hatasız bir şekilde gösteremeyecektir. Tarayıcınızı nasıl güncelleyebileceğinizi öğrenin",v.ro="Browser-ul (%s) tau este invechit. Detine probleme de securitate cunoscute si poate sa nu afiseze corect toate elementele acestui si altor site-uri. Invata cum sa-ti actualizezi browserul.",v.bg="Вашият браузър (%s) не е актуален. Известно е, че има пропуски в сигурността и може да не покаже правилно този или други сайтове. Научете как да актуализирате браузъра си.",v.el="Αυτός ο ιστότοπος σας υπενθυμίζει: Ο φυλλομετρητής σας (%s) είναι παρωχημένος. Ενημερώστε το πρόγραμμα περιήγησής σας για μεγαλύτερη ασφάλεια και άνεση σε αυτήν την ιστοσελίδα.",v.ar="متصفحك (%s) منتهى الصلاحيه. ويوجد به ثغرات امنية معروفة وقد لا يُشغل كثير من الميزات المتعلقه بهذه الموقع. أضغط هنالتعرف كيف تقوم بتحديث متصفحك",v.sr="Vaš pretraživač (%s) je zastareo. Ima poznate sigurnosne probleme i najverovatnije neće prikazati sve funkcionalnisti ovog i drugih sajtova. Nauči više o nadogradnji svog pretraživača",v.la="Mēs vēlamies Jums atgādināt: Jūsu pārlūkprogramma (%s) ir novecojusi. Atjauniniet savu pārlūkprogrammu, lai uzlabotu drošību, ātrumu un pārlūkošanas ērtības šajā un citās lapās.",v.ga="Tá an líonléitheoir agat (%s) as dáta. Tá laigeachtaí slándála a bhfuil ar eolas ann agus b'fhéidir nach taispeánfaidh sé gach gné den suíomh gréasáin seo ná cinn eile. Foghlaim conas do líonléitheoir a nuashonrú",v.lv="Jūsu pārlūkprogramma (%s) ir novecojusi. Tai ir zināmas drošības problēmas, un tā var attēlot šo un citas tīmekļa lapas nekorekti. Uzzini, kā atjaunot savu pārlūkprogrammu",v.no="Dette nettstedet ønsker å minne deg på: Din nettleser (%s) er utdatert. Oppdater nettleseren din for mer sikkerhet, komfort og den beste opplevelsen på denne siden.",v.th="เว็บไซต์นี้อยากจะเตือนคุณ: เบราว์เซอร์ (%s) ของคุณนั้น ล้าสมัยแล้วปรับปรุงเบราว์เซอร์ของคุณ เพื่อเพิ่ม ความปลอดภัย ความสะดวกสบายและประสบการณ์ที่ดีที่สุดในเว็บไซต์นี้",v=t.text?t.text:t["text_"+l]?t["text_"+l]:v[l]?v[l]:v.en;var b="";this.op.newwindow&&(b=' target="_blank"'),this.op.text=n(v,g.t,' id="buorgul" href="'+this.op.url+'"'+b);var y=document.createElement("div");this.op.div=y,y.id="buorg",y.className="buorg";var w="";y.innerHTML="
").addClass(this.loadPanelClass).text(this.message).hide().css({position:"absolute",top:"50%",left:"50%",zIndex:this.zIndex}).appendTo(this._container)},show:function(){var t=this._loadPanel.show(),e=t.outerWidth(),i=t.outerHeight();t.css({marginTop:-i/2,marginLeft:-e/2}),this._shader.show()},hide:function(){this._loadPanel.hide(),this._shader.hide()}},t.LoadIndicator=i}(jsGrid,jQuery),function(t,$,e){function i(t){this._grid=t}function n(t){this._grid=t,this._itemsCount=0}i.prototype={firstDisplayIndex:function(){var t=this._grid;return t.option("paging")?(t.option("pageIndex")-1)*t.option("pageSize"):0},lastDisplayIndex:function(){var t=this._grid,e=t.option("data").length;return t.option("paging")?Math.min(t.option("pageIndex")*t.option("pageSize"),e):e},itemsCount:function(){return this._grid.option("data").length},openPage:function(t){this._grid.refresh()},loadParams:function(){return{}},sort:function(){return this._grid._sortData(),this._grid.refresh(),$.Deferred().resolve().promise()},finishLoad:function(t){this._grid.option("data",t)},finishInsert:function(t){var e=this._grid;e.option("data").push(t),e.refresh()},finishDelete:function(t,e){var i=this._grid;i.option("data").splice(e,1),i.reset()}},n.prototype={firstDisplayIndex:function(){return 0},lastDisplayIndex:function(){return this._grid.option("data").length},itemsCount:function(){return this._itemsCount},openPage:function(t){this._grid.loadData()},loadParams:function(){var t=this._grid;return{pageIndex:t.option("pageIndex"),pageSize:t.option("pageSize")}},sort:function(){return this._grid.loadData()},finishLoad:function(t){this._itemsCount=t.itemsCount,this._grid.option("data",t.data)},finishInsert:function(t){this._grid.search()},finishDelete:function(t,e){this._grid.search()}},t.loadStrategies={DirectLoadingStrategy:i,PageLoadingStrategy:n}}(jsGrid,jQuery),function(t,$,e){var i=function(t){return"undefined"!=typeof t&&null!==t},n={string:function(t,e){return i(t)||i(e)?i(t)?i(e)?(""+t).localeCompare(""+e):1:-1:0},number:function(t,e){return t-e},date:function(t,e){return t-e},numberAsString:function(t,e){return parseFloat(t)-parseFloat(e)}};t.sortStrategies=n}(jsGrid,jQuery),function(t,$,e){function i(t){this._init(t)}i.prototype={_init:function(t){$.extend(!0,this,t)},validate:function(t){var e=[];return $.each(this._normalizeRules(t.rules),function(i,n){if(!n.validator(t.value,t.item,n.param)){var a=$.isFunction(n.message)?n.message(t.value,t.item):n.message;e.push(a)}}),e},_normalizeRules:function(t){return $.isArray(t)||(t=[t]),$.map(t,$.proxy(function(t){return this._normalizeRule(t)},this))},_normalizeRule:function(t){if("string"==typeof t&&(t={validator:t}),$.isFunction(t)&&(t={validator:t}),!$.isPlainObject(t))throw Error("wrong validation config specified");return t=$.extend({},t),$.isFunction(t.validator)?t:this._applyNamedValidator(t,t.validator)},_applyNamedValidator:function(t,e){delete t.validator;var i=n[e];if(!i)throw Error('unknown validator "'+e+'"');return $.isFunction(i)&&(i={validator:i}),$.extend({},i,t)}},t.Validation=i;var n={required:{message:"Field is required",validator:function(t){return t!==e&&null!==t&&""!==t}},rangeLength:{message:"Field value length is out of the defined range",validator:function(t,e,i){return t.length>=i[0]&&t.length<=i[1]}},minLength:{message:"Field value is too long",validator:function(t,e,i){return t.length>=i}},maxLength:{message:"Field value is too short",validator:function(t,e,i){return t.length<=i}},pattern:{message:"Field value is not matching the defined pattern",validator:function(t,e,i){return"string"==typeof i&&(i=new RegExp("^(?:"+i+")$")),i.test(t)}},range:{message:"Field value is out of the defined range",validator:function(t,e,i){return t>=i[0]&&t<=i[1]}},min:{message:"Field value is too large",validator:function(t,e,i){return t>=i}},max:{message:"Field value is too small",validator:function(t,e,i){return t<=i}}};t.validators=n}(jsGrid,jQuery),function(t,$,e){function i(t){$.extend(!0,this,t),this.sortingFunc=this._getSortingFunc()}i.prototype={name:"",title:null,css:"",align:"",width:100,visible:!0,filtering:!0,inserting:!0,editing:!0,sorting:!0,sorter:"string",headerTemplate:function(){return this.title===e||null===this.title?this.name:this.title},itemTemplate:function(t,e){return t},filterTemplate:function(){return""},insertTemplate:function(){return""},editTemplate:function(t,e){return this._value=t,this.itemTemplate(t,e)},filterValue:function(){return""},insertValue:function(){return""},editValue:function(){return this._value},_getSortingFunc:function(){var e=this.sorter;if($.isFunction(e))return e;if("string"==typeof e)return t.sortStrategies[e];throw Error('wrong sorter for the field "'+this.name+'"!')}},t.Field=i}(jsGrid,jQuery),function(t,$,e){function i(t){n.call(this,t)}var n=t.Field;i.prototype=new n({autosearch:!0,readOnly:!1,filterTemplate:function(){if(!this.filtering)return"";var t=this._grid,e=this.filterControl=this._createTextBox();return this.autosearch&&e.on("keypress",function(e){13===e.which&&(t.search(),e.preventDefault())}),e},insertTemplate:function(){return this.inserting?this.insertControl=this._createTextBox():""},editTemplate:function(t){if(!this.editing)return this.itemTemplate(t);var e=this.editControl=this._createTextBox();return e.val(t),e},filterValue:function(){return this.filterControl.val()},insertValue:function(){return this.insertControl.val()},editValue:function(){return this.editControl.val()},_createTextBox:function(){return $("").attr("type","text").prop("readonly",!!this.readOnly)}}),t.fields.text=t.TextField=i}(jsGrid,jQuery),function(t,$,e){function i(t){n.call(this,t)}var n=t.TextField;i.prototype=new n({sorter:"number",align:"right",readOnly:!1,filterValue:function(){return parseInt(this.filterControl.val()||0,10)},insertValue:function(){return parseInt(this.insertControl.val()||0,10)},editValue:function(){return parseInt(this.editControl.val()||0,10)},_createTextBox:function(){return $("").attr("type","number").prop("readonly",!!this.readOnly)}}),t.fields.number=t.NumberField=i}(jsGrid,jQuery),function(t,$,e){function i(t){n.call(this,t)}var n=t.TextField;i.prototype=new n({insertTemplate:function(){return this.inserting?this.insertControl=this._createTextArea():""},editTemplate:function(t){if(!this.editing)return this.itemTemplate(t);var e=this.editControl=this._createTextArea();return e.val(t),e},_createTextArea:function(){return $("